package cn.tedu.boot.ers.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class UserLoginDTO implements Serializable {
    @NotNull(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名",name = "username",example = "tf001")
    private String username;
    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "密码",name = "password",example = "1313")
    private String password;

}
